<?php

class PhotoController extends Controller_Site 
{
	public function indexAction()
	{
		$galleryRowset = PhotoService::getInstance()->getLatestGalleries();
		$this->view->galleries = ContentList::fromRowset($galleryRowset);
		
		$photoRowset = PhotoService::getInstance()->getMostCommentedPhotos();
		$thiss->view->photos = ContentList::fromRowset($photoRowset);
	}
	
	public function listAction()
	{
		
		
	}
	
	public function photoAction()
	{
		
	}
}